export function encrypt(text: any, password: any) {
  let encrypted = "";
  for (let i = 0; i < text.length; i++) {
    const charCode =
      text.charCodeAt(i) ^ password.charCodeAt(i % password.length);
    encrypted += String.fromCharCode(charCode);
  }
  return encrypted;
}

export function decrypt(text: any, password: any) {
  let decrypted = "";
  for (let i = 0; i < text.length; i++) {
    const charCode =
      text.charCodeAt(i) ^ password.charCodeAt(i % password.length);
    decrypted += String.fromCharCode(charCode);
  }
  return decrypted;
}
